﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using GameSPK.Model;

namespace GameSPK.Helpers
{
    class AssignControl
    {
        public static void assignControlContentWrap(ref Control dest, string content)
        {
            System.Windows.Controls.TextBlock contenLable = new System.Windows.Controls.TextBlock();
            contenLable.TextWrapping = System.Windows.TextWrapping.WrapWithOverflow;
            contenLable.Text = content;
            
        }
        public static void assignControlLayout(ref Control dest, LabelLayout source, string name)
        {
            dest.Name = name;
            dest.Width = source.Width;
            dest.Height = source.Height;
            dest.Margin = new System.Windows.Thickness(source.Left, source.Top, 0, 0);
            dest.VerticalAlignment = System.Windows.VerticalAlignment.Top;
            dest.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            dest.Visibility = System.Windows.Visibility.Visible;

        }
    }
}
